#pragma once
#include "afxwin.h"


// CSerialManage dialog

class CSerialManage : public CDialogEx
{
	DECLARE_DYNAMIC(CSerialManage)

public:
	CSerialManage(CWnd* pParent, CMeasureProject& project);
	virtual ~CSerialManage();

// Dialog Data
	enum { IDD = IDD_SERIAL_MANAGE };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
  afx_msg void OnBnClickedOk();
  afx_msg void OnBnClickedCancel();
  afx_msg void OnBnClickedSerialAdd();
  afx_msg void OnBnClickedSerialDelete();
  afx_msg void OnLbnSelchangeSerialList();
  afx_msg void OnBnClickedSerialSwitch();
  afx_msg void OnBnClickedSerialSend();
  virtual BOOL OnInitDialog();

private:
  CMeasureProject&  project_;
  CListBox          wnd_list_;
  CEdit             wnd_device_;
  CButton           wnd_delete_;
  CButton wnd_switch_;
  CButton wnd_send_;
  CString string_send_;
  CEdit   wnd_status_;
};
